from django.db import models
# 用户
class UserInfo(models.Model):
    username = models.CharField(verbose_name='账户id', max_length=32, unique=True)  # 字符串类型
    password = models.CharField(verbose_name='密码', max_length=64)
# 论坛
class ForumReviews(models.Model):
    stars = models.IntegerField(verbose_name='点赞数', default=0)
    views = models.IntegerField(verbose_name='浏览次数', default=0)
    reviews = models.IntegerField(verbose_name='评论数', default=0)
    contents = models.CharField(verbose_name='评论内容', max_length=512, default=0)
